<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 单引号 双引号 反引号 ''  ""  ``
        function fn1() {
            return 666
        }
        let hasWude = false;
        let str1 = `hello es6`;
        let str2 = `hello 2023`;
        // 变量替换 简单的运算 简单的逻辑 调用函数
        let str3 = `
        hi
        ${str1}
        ${9*9}
        ${hasWude?`闪电五连鞭`:`形意八卦掌门人`}
        ${fn1()}
        `;
        console.log(str3);
    </script>
</body>
</html>